//
//  NHNetEngine.h
//  NeiHanDemo
//
//  Created by qianfeng on 16/2/19.
//  Copyright © 2016年 王卓越. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlockType) (id respondData);
typedef void(^FaliedBlockType) (NSError *error);


@interface NHNetEngine : NSObject

+ (instancetype)sharedInstance;
//request: ->等待请求的url
//success: ->数据请求成功后调用的block
//falied:  ->数据请求失败后调用的block
- (void)request:(NSString *)url success:(SuccessBlockType)successBlock falied:(FaliedBlockType)faliedBlock;

@end
